package com.wwl.springcloud.controller;

import com.wwl.springcloud.dto.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/6 16:12
 * @description:
 */
@RestController
@Slf4j
@Api(value = "/payment",description = "支付", tags = {"payment"})
@RequestMapping("/payment")
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    private CommonResult commonResult;

    @ApiOperation("检测zookeeper注册是否成功")
    @PostMapping("/zookeeper")
    public CommonResult findZookeeper(){
        return commonResult.success("zookeeper注册成功!!端口："+serverPort);
    }

}
